package com.henrybit.util;

/**
 * 常量文件<p>
 * @author henrybit
 * @version 1.0
 */
public class Constant {
	/**DB驱动类*/
	public static String DB_DRIVER_CLASS = "com.mysql.jdbc.Driver";
	/**DB连接*/
	public static String DB_URL = "jdbc:mysql://localhost:3306/test";
	/**DB用户名*/
	public static String DB_USER = "root";
	/**DB密码*/
	public static String DB_PASSWD = "henrybit";
	
	/**DB注册驱动异常*/
	public static int DB_INIT_DRIVER_ERROR = 100;
	/**DB注册驱动类异常-未找到驱动类*/
	public static int DB_INIT_DRIVER_CLASS_NOTFOUND = 101;
	/**DB获取连接异常*/
	public static int DB_GET_CONNECTION_ERROR = 200;
	/**DB获取连接异常-访问DB失败*/
	public static int DB_GET_CONNECTION_ACCESS_DB_FAILED = 201;
	/**DB查询数据异常*/
	public static int DB_QUERY_ERROR = 300;
	/**DB查询酒店信息异常*/
	public static int DB_QUERY_HOTEL_INFO_ERROR = 301;
	/**DB关闭数据库连接异常*/
	public static int DB_CONNECTION_CLOSE_ERROR = 302;
	/**封装酒店信息类异常*/
	public static int DB_HOTELINFO_PREPARE_DATA_ERROR = 303;
	/**封装岛屿信息类异常*/
	public static int DB_LANDINFO_PREPARE_DATA_ERROR = 304;
	/**封装菜单信息类异常*/
	public static int DB_MENU_PREPARE_DATA_ERROR = 305;
	/**封装用户信息类异常*/
	public static int DB_USERINFO_PREPARE_DATA_ERROR = 306;
	/**DB查询岛屿信息异常*/
	public static int DB_QUERY_LAND_INFO_ERROR = 307;
	/**DB查询菜单信息异常*/
	public static int DB_QUERY_MENU_INFO_ERROR = 308;
	/**DB查询用户信息异常*/
	public static int DB_QUERY_USER_INFO_ERROR = 309;
	/**DB查询岛屿酒店关系异常*/
	public static int DB_QUERY_LAND_HOTEL_RELATION_ERROR = 310;
	/**封装岛屿酒店关系信息异常*/
	public static int DB_LAND_HOTEL_PREPARE_DATA_ERROR = 311;
	/**封装岛屿详情信息异常*/
	public static int DB_LAND_DETAIL_INFO_PREPARE_DATA_ERROR = 312;
	/**DB查询岛屿详情信息异常*/
	public static int DB_QUERY_LAND_DETAIL_INFO_ERROR = 313;
}
